package com.poh.mapper;

import com.poh.pojo.Reply;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ReplyMapper {
    int addReply(Reply reply);
    List<Reply> queryReplyByTopicId(@Param("topicId") int topicId);
    List<Reply> queryAllReplyByTopicId(@Param("topicId") int topicId);
    Reply queryReplyByReplyedId(@Param("replyedId") int replyedId);
    List<Reply> queryReplyByUserId(@Param("userId") int userId);
    List<Reply> queryReplyedByReplyedName(@Param("userName") String userName);
    int deleteReplyById(@Param("replyId") int replyId);
}
